package com.ywu.verify.spi.client;

import com.ywu.common.result.CommonResult;
import com.ywu.verify.spi.dto.VerifyDto;
import com.ywu.verify.spi.dto.VerifyParamDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "YWU-VERIFY")
public interface VerifyCodeSpi {
    @PostMapping("/ywu/verify/login.verify.code")
    CommonResult<Object> loginVerifyCode(@RequestBody VerifyParamDto dto);

    @PostMapping("/ywu/verify/login.code.verify")
    CommonResult<Object> verifyLoginCode(@RequestBody VerifyDto dto);
}
